package com.quan.admin.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.quan.commons.core.biz.support.MyBaseServiceImpl;
import com.quan.commons.core.utils.PageUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.core.metadata.IPage;

import com.quan.admin.mapper.SysDictMapper;
import com.quan.admin.entity.SysDict;
import com.quan.admin.service.SysDictService;


@Service
public class SysDictServiceImpl extends MyBaseServiceImpl<SysDictMapper, SysDict> implements SysDictService {

    @Autowired
	private SysDictMapper mapper;

	@Override
    public IPage<SysDict> selectMyPage(PageUtils pageUtils, SysDict entity) {
        Page<SysDict> page = new Page<SysDict>(pageUtils.getPage(), pageUtils.getLimit());

        // 排序
        super.handleSort(page, pageUtils);

        return this.mapper.selectMyPage(page, entity);
    }

}